package com.miao.elm.exception;//package com.miao.elm.exception;
//
//import com.miao.elm.utils.ResponseEnum;
//import com.miao.elm.vo.ServerResponseVO;
//import org.apache.shiro.authz.UnauthorizedException;
//import org.springframework.http.HttpStatus;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.ResponseStatus;
//import org.springframework.web.bind.annotation.RestControllerAdvice;
//
//@RestControllerAdvice
//public class UserExceptionHandler {
//
//    @ExceptionHandler(UnauthorizedException.class)
//    @ResponseStatus(HttpStatus.UNAUTHORIZED)
//    public ServerResponseVO unAuthorizedExceptionHandler(UnauthorizedException e){
//        return ServerResponseVO.error(ResponseEnum.UNAUTHORIZED);
//    }
//
//}
